package com.dongnaoedu.rpc.redis;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import com.dongnaoedu.rpc.redis.example.HelloServiceConsumer;

@SpringBootApplication
public class ConsumerApplication {

	public static void main(String[] args) throws Exception {
		ConfigurableApplicationContext applicationContext = SpringApplication.run(ConsumerApplication.class, args);
		
		HelloServiceConsumer helloServiceConsumer = applicationContext.getBean(HelloServiceConsumer.class);
		helloServiceConsumer.justtest();
		
		System.in.read();
	}
}
